#ifndef DESKTOPRESOURCE_H
#define DESKTOPRESOURCE_H

#include <QList>
#include <QString>

class QPixmap;

class DesktopResource
{
public:
    static DesktopResource *getInstance();
    void releaseWelcome();
    void releaseTeam();
private:
    DesktopResource();
    void init();
    void initWelcome();
    void initTeam();
    void initDesktop();
public:
    // welcome animation
    QList<QPixmap *> *welcome;
    int welcomeTime;
    // team animation
    QList<QPixmap *> *team;
    QString teamPath;
    QString teamPrefix;
    QString teamSuffix;
    int teamCount;
    int teamTime;

    QPixmap *backgroundPixmap;
    QList<QPixmap *> *appsPixmap;
private:
    QPixmap *release;
    static DesktopResource *resource;
};

#endif // DESKTOPRESOURCE_H
